package com.hadwinling.blog.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hadwinling.blog.mapper.FollowMapper;
import com.hadwinling.blog.entity.Follow;
import com.hadwinling.blog.service.FollowService;
/**
* @Package com.hadwinling.blog.service.impl
* @author HadwinLing
* @date 2020/8/19 7:47
* @version V1.0
*/
@Service
public class FollowServiceImpl implements FollowService{

    @Resource
    private FollowMapper followMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return followMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Follow record) {
        return followMapper.insert(record);
    }

    @Override
    public int insertSelective(Follow record) {
        return followMapper.insertSelective(record);
    }

    @Override
    public Follow selectByPrimaryKey(Integer id) {
        return followMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Follow record) {
        return followMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Follow record) {
        return followMapper.updateByPrimaryKey(record);
    }

}
